﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Main.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="AudioBook.AudioManagement.CategoryManage.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainHolder" runat="server">
    <asp:HiddenField ID="hidCurrentFolder" runat="server" />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="border">
                <div class="padding">
                    <div id="toolbar-box">
                        <div class="t">
                            <div class="t">
                                <div class="t">
                                </div>
                            </div>
                        </div>
                        <div class="m">
                            <div class="toolbar-list">
                                <ul>
                                    <li class="button"><a href="/audiomanagerment/Home.aspx" class="toolbar"><span class="icon-32-home">
                                    </span>Home </a></li>
                                    <li class="button"><a href="AddCategory.aspx" class="toolbar"><span class="icon-32-new">
                                    </span>New </a></li>
                                    <li class="divider"></li>
                                    <li class="button">
                                        <asp:LinkButton ID="btnActive" runat="server" CssClass="toolbar" OnClick="btnActive_Click">
                                    <span class="icon-32-active"></span>
                                    Active </asp:LinkButton></li>
                                    <li class="button">
                                        <asp:LinkButton ID="btnUnActive" runat="server" CssClass="toolbar" OnClick="btnUnActive_Click">
                                    <span class="icon-32-unactive"></span>
                                    UnActive </asp:LinkButton></li>
                                    <li class="divider"></li>
                                    <li class="button">
                                        <asp:LinkButton ID="btnRefresh" runat="server" CssClass="toolbar" OnClick="btnRefresh_Click">
                                    <span class="icon-32-refresh"></span>
                                    Refresh</asp:LinkButton>
                                    </li>
                                    <li class="button"><a href="#" class="toolbar"><span class="icon-32-help"></span>Help
                                    </a></li>
                                </ul>
                                <div class="clr">
                                </div>
                            </div>
                            <div class="pagetitle icon-48-categories">
                                <h2>
                                    Category Manage: List of the categories</h2>
                            </div>
                            <div class="clr">
                            </div>
                        </div>
                        <div class="b">
                            <div class="b">
                                <div class="b">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div>
                        <asp:CustomValidator ID="valCommon" runat="server" Text="" Visible="false"></asp:CustomValidator>
                        <asp:ValidationSummary ID="valSum" runat="server" EnableClientScript="true" />
                    </div>
                    <div class="clr">
                    </div>
                    <div id="element-box">
                        <div class="t">
                            <div class="t">
                                <div class="t">
                                </div>
                            </div>
                        </div>
                        <div class="m">
                            <fieldset id="filter-bar">
                                <div class="filter-search fltlft">
                                </div>
                                <div class="filter-select fltrt">
                                    <asp:DropDownList ID="dropModule" runat="server" AutoPostBack="true" DataTextField="ModuleName"
                                        DataValueField="ModuleID" OnSelectedIndexChanged="dropModule_SelectedIndexChanged"
                                        CssClass="inputbox">
                                    </asp:DropDownList>
                                    <asp:DropDownList ID="dropActive" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dropActive_SelectedIndexChanged"
                                        CssClass="inputbox">
                                    </asp:DropDownList>
                                </div>
                            </fieldset>
                            <div class="clr">
                            </div>
                            <asp:DataGrid ID="gridCategory" runat="server" AllowPaging="false" PageSize="50"
                                AllowCustomPaging="true" BorderWidth="1" Width="100%" CssClass="grid" AutoGenerateColumns="false"
                                OnItemDataBound="gridCategory_ItemDataBound">
                                <HeaderStyle CssClass="gridHeader" />
                                <ItemStyle CssClass="gridRow0" />
                                <AlternatingItemStyle CssClass="gridRow1" />
                                <PagerStyle Mode="NumericPages" Position="Bottom" PageButtonCount="10" CssClass="gridPager" />
                                <Columns>
                                    <asp:TemplateColumn HeaderText="#" HeaderStyle-Width="12" ItemStyle-HorizontalAlign="Right">
                                        <ItemTemplate>
                                            <asp:Label ID="lblOrder" runat="server"></asp:Label>
                                            <asp:HiddenField ID="hidCategoryID" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderStyle-Width="10">
                                        <HeaderTemplate>
                                            <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAllCheckbox(this,'SELECTED')" />
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkSelected" runat="server" name="SELECTED" />
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="Name">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="hplName" runat="server"></asp:HyperLink>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="Description">
                                        <ItemTemplate>
                                            <asp:Label ID="lblDescription" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="Active" HeaderStyle-Width="60" ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="btnActive" runat="server" BackColor="Transparent"  Enabled="false"/>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                   
                                    <asp:TemplateColumn HeaderText="Sort" HeaderStyle-Width="100" ItemStyle-HorizontalAlign="Right">
                                        <ItemTemplate>
                                            <asp:Label ID="lblSortOrder" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="Created" HeaderStyle-Width="100" ItemStyle-HorizontalAlign="Right">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCreated" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="Modified" HeaderStyle-Width="100" ItemStyle-HorizontalAlign="Right">
                                        <ItemTemplate>
                                            <asp:Label ID="lblModified" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="ID" HeaderStyle-Width="30" ItemStyle-HorizontalAlign="Right">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCategoryID" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="Edit" HeaderStyle-Width="30" ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="hplEdit" runat="server" ToolTip="Edit" ImageUrl="~/images/grid/edit.png" />
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
                                </Columns>
                            </asp:DataGrid>
                            <div class="clr">
                            </div>
                        </div>
                        <div class="b">
                            <div class="b">
                                <div class="b">
                                </div>
                            </div>
                        </div>
                    </div>
                    <noscript>
                        Warning! JavaScript must be enabled for proper operation of the Administrator backend.
                    </noscript>
                    <div class="clr">
                    </div>
                </div>
                <div class="clr">
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
